<template>
    <div>
        <h2>共有{{ money }}元</h2>
        <button @click="chifan">吃饭</button>
        <button @click="money-=100">洗脚</button>
    </div>
</template>
<script>
export default{
    name:'wang-wang',
    data(){
        return{
            money:0
        }
    },
    methods:{
        chifan(){
            this.money-=100
        },
        xijiao(){
            this.money-=60
        }
    }
}
</script>